package com.dnndo.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 大赛实体类
 */
@Data
@TableName("theme_competition")
public class Theme {

    /**
     * 大赛活动ID
     */
    @TableId(value = "theme_id")
    private Integer themeId;

    /**
     * 大赛活动名称
     */
    @TableField("theme_name")
    private String themeName;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 大赛主题（是校徽主题还是周边主题）
     */
    @TableField("theme_title")
    private String themeTitle;

    /**
     * 活动说明
     */
    @TableField("activity_description")
    private String activityDescription;

    /**
     * 图片地址
     */
    @TableField("theme_url")
    private String themeUrl;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;

    /**
     * 浏览量
     */
    @TableField("page_view")
    private Integer pageView;

    /**
     * 预计开始时间
     */
    @TableField("expect_start_time")
    private Date expectStartTime;

    /**
     * 结束时间
     */
    @TableField("over_time")
    private Date overTime;

    /**
     * 大赛类型（0平台、1学校、3平台给学校）
     */
    @TableField("theme_type")
    private String themeType;

    @Override
    public String toString() {
        return "Theme{" +
                "themeId=" + themeId +
                ", themeName='" + themeName + '\'' +
                ", userId=" + userId +
                ", themeTitle='" + themeTitle + '\'' +
                ", activityDescription='" + activityDescription + '\'' +
                ", themeUrl='" + themeUrl + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", pageView=" + pageView +
                ", expectStartTime=" + expectStartTime +
                ", overTime=" + overTime +
                ", themeType='" + themeType + '\'' +
                '}';
    }
}
